export interface BaseProps {
    children: Array<Component>
}
export interface V50407Props extends BaseProps {
    tagName: string,
}
export default class Component {
    innerChildren: Array<Component>
    innerTagName: string
    constructor(props: V50407Props) {
        this.innerChildren = props.children
        this.innerTagName = props.tagName;
    }
    
    // get a() {
    //     return 1

    // }
    render() {
        // return list
        const element = document.createElement(this.innerTagName);
        if (this.innerChildren?.length) {
            this.innerChildren.forEach(qaq => {
                element.appendChild(qaq.render());
            })
        }
        return element
    }
}